package com.yenn.barcode.otherdemo;

import jp.sourceforge.qrcode.data.QRCodeImage;
import lombok.AllArgsConstructor;

import java.awt.image.BufferedImage;

@AllArgsConstructor
public class MyQrCodeImage  implements QRCodeImage {
    private BufferedImage bufferedImage;



    @Override
    public int getWidth() {
        return bufferedImage.getWidth();
    }

    @Override
    public int getHeight() {
        return bufferedImage.getHeight();
    }

    @Override
    public int getPixel(int i, int i1) {
        return bufferedImage.getRGB(i,i1);
    }
}
